import { Model } from '../core';
import { DataService } from '../core/DataService';

export interface UserRole extends Model {
	userId: string;
	roleId: string;
}

class UserRoleService extends DataService<UserRoleService, UserRole> {
	protected create(): UserRoleService {
		return this.initTokenInstance('user-role') as UserRoleService;
	}
}

export const userRoleService = new UserRoleService();
